home *** CD-ROM | disk | FTP | other *** search
Wrap
iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) NNNNAAAAMMMMEEEE iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg - image array resident in memory IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM ilLink : ilImage HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE #include <il/ilMemoryImg.h> CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN This class provides a simple way to access a contiguous array of data through the IL. It can be used as an external interface between the IL and other libraries or devices. It can also be used as the base class to derive classes supporting such external devices or libraries. An ilMemoryImg can be created on top of an existing array allocated by the user. If no array is given, then one is allocated based on the size specified by the user. In either case, the IL expects the entire image to reside in the array. Once the ilMemoryImg is created, it can be used just like any other IL image object. In addition, the user can get a pointer to the array, so that it can be read from or written to as needed. In this way, an ilMemoryImg can be used to import external data to the IL or export data from the IL. ilMemoryImg can also be used to hold temporary rapid access copies of images when necessary. Various functions such as sssseeeettttCCCCoooolllloooorrrrMMMMooooddddeeeellll(((()))) and sssseeeettttCCCCoooooooorrrrddddSSSSppppaaaacccceeee(((()))) can be used to alter the interpretation of the data. The inherited member functions, ggggeeeettttSSSSuuuubbbbTTTTiiiilllleeee3333DDDD(((()))), sssseeeettttSSSSuuuubbbbTTTTiiiilllleeee3333DDDD(((()))), and ccccooooppppyyyyTTTTiiiilllleeee3333DDDD(((()))) are implemented to access the data array. The inherited member function, ffffiiiillllllllTTTTiiiilllleeee3333DDDD(((()))), is implemented to fill a tile with the fill pixel. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr ilMemoryImg(const iflSize& size, iflDataType type, iflOrder order=iflInterleaved) ilMemoryImg(void* data, const iflSize& size, iflDataType type, iflOrder order=iflInterleaved) ilMemoryImg(ilImage* img) DDDDiiiirrrreeeecccctttt aaaacccccccceeeessssssss void* getDataPtr() void setDataPtr(void* data) PPPPaaaaggggeeee 1111 iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn void markDirty() void sync() FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg(((()))) ilMemoryImg(const iflSize& size, iflDataType type, iflOrder order=iflInterleaved) ilMemoryImg(void* data, const iflSize& size, iflDataType type, iflOrder order=iflInterleaved) ilMemoryImg(ilImage* img) The first constructor allocates an array to hold data of _s_i_z_e pixels with data type, _t_y_p_e, and dimension ordering, _o_r_d_e_r. This data is deallocated when the object is destroyed. The second constructor uses the array indicated by _d_a_t_a to hold the pixels. Management of this array is left to the user. The third constructor takes a pointer to an ilImage. Image attributes are inherited from this input image. ggggeeeettttDDDDaaaattttaaaaPPPPttttrrrr(((()))) void* getDataPtr() This function returns a pointer to the internal image data array. This can be used to interface directly to other libraries or external devices that dump their data into CPU memory. mmmmaaaarrrrkkkkDDDDiiiirrrrttttyyyy(((()))) void markDirty() This function indicates that the data content or some other attribute has changed by setting the altered flag. This causes a reset to propagate down the chain. sssseeeettttDDDDaaaattttaaaaPPPPttttrrrr(((()))) void setDataPtr(void* data) This function sets the pointer to the internal image data array. This can be used to interface directly to other libraries or external devices that dump their data into CPU memory. PPPPaaaaggggeeee 2222 iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) ssssyyyynnnncccc(((()))) void sync() This function synchronizes attributes and data to the input image. If the ilMemoryImg is not constructed from an ilImage, this function has no affect. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllIIIImmmmaaaaggggeeee addInput(), allocFillData(), checkColorModel(), checkValidOrder(), checkValidType(), clipTile(), configureRetainedCache(), copy(), copyTile(), copyTile3D(), copyTileCfg(), fillTile(), fillTile3D(), fillTileRGB(), freeFillData(), getColorImg(), getColorModel(), getColormap(), getCompression(), getConfig(), getCopyConverter(), getCsize(), getDataType(), getDimensions(), getDirectInput(), getDisplayCacheEnable(), getFill(), getFillData(), getFillValue(), getHeight(), getHwEnable(), getHwHint(), getHwIntHint(), getHwOp(), getHwPassTable(), getInput(), getInputTileRequirement(), getLockTileSet(), getMaxColormapLevels(), getMaxValue(), getMinValue(), getNumChans(), getNumInputs(), getOrder(), getOrientation(), getPageBorder(), getPageBorderX(), getPageBorderY(), getPageBorderZ(), getPageCounts(), getPageDelta(), getPageDimensions(), getPageIndices(), getPageOrigin(), getPageOriginC(), getPageOriginX(), getPageOriginY(), getPageOriginZ(), getPageSize(), getPageSizeC(), getPageSizePix(), getPageSizeVal(), getPageSizeX(), getPageSizeY(), getPageSizeZ(), getPixel(), getPixel3D(), getPriority(), getScaleMax(), getScaleMin(), getSize(), getStrides(), getSubTile(), getSubTile3D(), getTile(), getTile3D(), getWidth(), getXsize(), getYsize(), getZsize(), hasPageBorder(), hasPages(), hwDefine(), hwGetPass(), inherit(), initColorModel(), initHwEnable(), initMinMax(), initPageSize(), initScaleMinMax(), isColorImg(), isIntegral(), isMirrorOrientation(), isPartialPage(), isSigned(), isValidPage(), isWritable(), lockPage(), lockPageSet(), lockTile(), lockTile3D(), mapFlipTrans(), mapFromInput(), mapFromSource(), mapOrientation(), mapSize(), mapTile(), mapToInput(), mapToSource(), mapXY(), mapXYSign(), outOfBound(), qCopyTileCfg(), qFillTile3D(), qFillTileRGB(), qGetSubTile3D(), qGetTile3D(), qLockPageSet(), qSetSubTile3D(), qSetTile3D(), removeHwHint(), removeInput(), reset(), setColorModel(), setColormap(), setCompression(), setCsize(), setDataType(), setDisplayCacheEnable(), setFill(), setFillValue(), setHwEnable(), setHwHint(), setHwIntHint(), setInput(), setMaxColormapLevels(), setMaxValue(), setMinValue(), setNumChans(), setNumInputs(), setOrder(), setOrientation(), setPageBorder(), setPageSize(), setPageSizeC(), setPageSizeZ(), setPixel(), setPixel3D(), setPriority(), setScaleMinMax(), setScaleType(), setSize(), setSubTile(), setSubTile3D(), setTile(), setTile3D(), setTileRequirementFunction(), setWritable(), setXsize(), setYsize(), setZsize(), unlockPage(), unlockPageSet() PPPPaaaaggggeeee 3333 iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllMMMMeeeemmmmoooorrrryyyyIIIImmmmgggg((((3333)))) IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiillllLLLLiiiinnnnkkkk addResetCallback(), alterAction(), anyAltered(), clearAllowed(), clearSet(), clearStatus(), deleteRelated(), disableAltered(), dumpChain(), getClassPropSet(), getDescription(), getDirectParent(), getDisabledIndex(), getFloatProp(), getGenerationID(), getIntProp(), getMaxIndex(), getMinIndex(), getNumChildren(), getNumParents(), getParent(), getProp(), getProp(), getPropSet(), getPtrProp(), getRelatedChild(), getRelatedDelete(), getRelatedType(), getStatus(), hasResetCallbacks(), ilGetClassPropSet(), inProgress(), isAllowed(), isAltered(), isEnabled(), isRelated(), isSet(), markSet(), mpUnlock(), neverReset(), newRelatedType(), removeParent(), removeProp(), removeResetCallback(), reset(), resetAltered(), resetCheck(), setAllowed(), setAltered(), setDescription(), setDisabledIndex(), setEnabled(), setParent(), setProp(), setPropAltered(), setRelatedDelete(), setRelatedType(), setStatus(), stopWatching(), unalterable(), watch(), watchNotify() SSSSEEEEEEEE AAAALLLLSSSSOOOO ilImage PPPPaaaaggggeeee 4444